<?  

$href     = $_SERVER["SCRIPT_NAME"];
$host     = $_SERVER["REMOTE_ADDR"];
$me       = $_SERVER["HTTP_HOST"];
$qs       = $_SERVER["QUERY_STRING"]; 
$source   = $_SERVER["HTTP_REFERER"]; 
$agent    = $_SERVER["HTTP_USER_AGENT"]; 
$is_pocketpc   = (!(strpos(strtolower($agent),"ppc",0)===false))||(strlen($pda)>0);
 if ($is_pocketpc) header ("Location: index.php?l=k&e=b&v=d&hm=1&r=on&pda=on");
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>ThePIMP - Launch</title>
<style>
body, td      {font:7pt verdana}
input         {font:8pt verdana;border-width:1px}
a             {text-decoration:none;color:black}
a.line        {text-decoration:underline;color:}
a.line:hover  {text-decoration:none}
a:hover       {text-decoration:underline}
.padded       {padding:2px}
.outset       {border-right:solid 1px gray;border-bottom:solid 1px gray;
		       border-top:solid 1px gainsboro;border-left:solid 1px gainsboro;padding:2px
}
</style>
<script language="javascript">

keymessage = "Invalid action";
KEYCTRL=17
KEYALT =18
KEYF5  =116 
function nsdenykeyaction(e) { 
	if ((e.which==KEYCTRL)||(e.which==KEYALT)||(e.which==KEYF5)) {
		// alert (keymessage);
	    return false;
	}
}

function nsdenymouseaction(e) { 
	if (e.button==2||e.button==3) {
		// alert (keymessage);
		 return false;
	}
}

if (document.all) {	  
   document.onmousedown = function () {
       if (event.button==2)
           return false;
   }
   document.onkeydown = function () {
       if ((event.keyCode==KEYCTRL)||(event.keyCode==KEYALT)||(event.keyCode==KEYF5))  
           return false;
   }
} else {    
	document.onmousedown = nsdenymouseaction; 
	document.onkeydown   = nsdenykeyaction; 
	document.captureEvents(Event.MOUSEDOWN | Event.KEYDOWN);    
}

document.oncontextmenu = function () {
		// alert (keymessage);
		 return false;
}

</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>   

        <table style="cursor:" width="180" bgcolor="#0099FF" cellpadding="6" cellspacing="1">
        <tr>
           <td>
            <b style="color:white">Launch ThePIMP</b>
           </td>
        </tr>
        <tr>
           <td bgcolor=white >
		   <div style="color:gray">
		   To launch <a href="index.php"><b>ThePIMP</b></a>, click the button <a href="test.asx">below</a>.
		   </div>
		  <div align=right>
		  <a href="#" style="color:silver" 
		   onclick='window.open("index.php?l=k&e=b&v=d&hm=1&r=on&pda=on&sl=on","mainwin<?= date("s") ?>","width=240,height=320,resizable=no,scrollbars=yes")'
		   ><u>PDA</u></a>
		  &nbsp;
		  <a href="#" style="color:silver" 
		   onclick='window.open("index.php?l=k&e=b&v=d&hm=1&r=on&bkb=on&sl=on","mainwin<?= date("s") ?>","width=240,height=260,resizable=no,scrollbars=yes")'
		   ><u>Blackberry</u></a>
		  &nbsp;
		   <input type="button" value="Launch"  onclick='window.open("index.php?l=k&e=b&v=d&hm=1&r=on&sl=on","mainwin<?= date("s") ?>","width=600,height=400,resizable=yes")'>
		   </div>
           </td>
        </tr>
		</table> 
		
</body>
</html>
